package com.yan.springcloud.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author ：Yan Guang
 * @date ：Created in 2020/11/28 16:27
 * @description：
 */
//实现序列化

@Data
@Accessors(chain =true)//链式写法,可以一直set
public class Dept implements Serializable {
    private Long deptno;
    private String dname;
    //可以查看数据存在哪个数据库的字段,一个数据库对应一个服务
    private String db_sourse;

    public Dept() {
    }

    public Dept(String dname) {
        this.dname = dname;
    }

    public Long getDeptno() {
        return deptno;
    }

    public void setDeptno(Long deptno) {
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDb_sourse() {
        return db_sourse;
    }

    public void setDb_sourse(String db_sourse) {
        this.db_sourse = db_sourse;
    }
}
